
//全部用来存储管理员有关的所有前端请求

import request from '../util/request'

export const addAdminRequest = (data) => {
  return request.post("/addAdmin", data)
}

export const adminListRequest = () => {
  return request.get("/adminList")
}

export const deleteAdminRequest = (adminName) => {
  return request.delete('/deleteAdmin', {
    params: { adminName }
  })
}

export const loginRequest = (data)=>{
  return request.post('/login',data)
}

export const logoutRequest = ()=>{
  return request.get('/logout')
}